package com.springark.ms.sampleexternals.api;

import com.springark.ms.commons.MsApiResult;
import com.springark.ms.sampleexternals.service.ExternalsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author hankchan
 * @since 2019/5/9
 */
@RestController
public class ExternalsAPIs {

    @Resource
    private ExternalsService externalsService;

    @GetMapping(value = "/externals/get", produces = "application/json;charset=UTF-8")
    public MsApiResult get() {
        return MsApiResult.newInstance().success(externalsService.get(), "");
    }
}
